package com.zto.sch.advance.excel;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by guotao on 2018/11/19.
 *
 * @Description: 领卡渠道
 */
public enum GetMemberCardChannelEnum {
    UNKNOW(0, "未知"),
    OTHER(1, "其他"),
    SCAN_STORE_CODE(2, "扫描门店二维码"),
    OFFLINE_IMPORT(3, "线下导入"),
    INVITE_FANS(4, "粉丝召集令-领卡"),
    USER_CENTER(5, "会员中心"),
    ACTIVITY_OFFLINE_EVENT(6, "线下主题活动-领卡"),
    SCAN_QRCODE(7, "二维码-定位门店"),
    WXAPP_GET_MEMBER_CARD(8, "小程序-点击-领卡"),
    THIRD_PARTY(9, "第三方平台"),
    WXOA_GET_MEMBER_CARD(10, "公众号-点击-领卡"),
    MEMBER_RECOMMEND(11, "会员推荐"),
    CONSUME_GIVE(12, "消费送卡"),
    BACKGROUND_IMPORT_MEMBER(13, "后台导入"),
    BACKGROUND_ADD_MEMBER(14, "后台新增"),
    APP_ADD_MEMBER(15, "APP新增"),
    THIRDPARTY_ADD_MEMBER(16, "第三方新增"),
    ACTIVITY_FANS_CALL(17, "营销活动粉丝召集令员"),
    EMPLOYEE(27, "员工-领卡"),
    ALL_PUSH(28, "全民推广"),
    BEND_GIVE_CARD(29, "后台发卡"),
    DEPOSIT_GIVE(30, "充值赠送"),
    USE_GET_CARD(31, "用户领卡"),
    PAY_GET_CARD(32, "付费领卡"),
    COUPON_CARD_COLLECTION(33, "裂变优惠券领卡"),
    CRAZY_RED_ENVELOPE(34, "红包也疯狂"),
    TACIT_UNDERSTANDING_TEST(35, "默契大考验"),
    EMPLOYEE_PROMOTION(36, "员工推广"),
    POST_PAYMENT_ADVERTISING(37, "支付后广告"),
    SIGN_IN_LOTTERY(38, "签到摇奖机"),
    CHANGE_QRCODE(39, "百变二维码"),
    DEPOSIT_CARD_GET(40, "购买储值卡"),
    MEMBER_AND_DEPOSIT(41, "领卡并购卡"),
    MARKETING_EGG_MACHINE(42, "营销活动扭蛋机"),
    OFFLINE_CARD_OPEN(43, "线下开卡"),
    PAAS_DATA_MERGE(44, "PAAS"),
    OFFICIAL_PAYMENT_CARD(45, "公众号-购买付费卡"),
    MINI_PAYMENT_CARD(46, "小程序-购买付费卡"),
    POSTER_COUPONS(47, "海报领券"),
    NEIGHBOURING_PUSH(48, "附近推渠道")
    ;

    private int code;
    private String message;
    protected static final Map<Integer, String> stringToEnum = new HashMap();
    private static final Map<Integer, GetMemberCardChannelEnum> type2EnumMap = new HashMap<Integer, GetMemberCardChannelEnum>();
    
    public static String getValue(Integer code) {
        return (String)stringToEnum.get(code);
    }
    public static GetMemberCardChannelEnum getEnum(Integer code) {
        return type2EnumMap.get(code);
    }
    
    private GetMemberCardChannelEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
    
    public int getCode() {
        return this.code;
    }
    
    public String getMessage() {
        return this.message;
    }
    
    static {
        for(GetMemberCardChannelEnum getMemberCardChannelEnum: GetMemberCardChannelEnum.values()) {
            stringToEnum.put(Integer.valueOf(getMemberCardChannelEnum.getCode()), getMemberCardChannelEnum.getMessage());
            type2EnumMap.put(Integer.valueOf(getMemberCardChannelEnum.getCode()), getMemberCardChannelEnum);
        }
    }
}